from .base import *

__all__ = ['PostItem']


# 帖子
class PostItem(BaseItem):
    item_type = 'post'              # 帖子
    totalReplyNum = scrapy.Field()  # 总回复数
    commentNum = scrapy.Field()     # 评论数
    position = scrapy.Field()       # 楼数
    uid = scrapy.Field()            # 作者Id
    parentId = scrapy.Field()       # 主帖子ID
    columnId = scrapy.Field()       # 贴吧ID
    column = scrapy.Field()         # 贴吧名称
    readNum = scrapy.Field()        # 阅读量/点击量
    postCategory = scrapy.Field()   # 主贴main跟帖follow

    def __init__(self):
        super().__init__()
        self['type'] = 'post'
